package cn.edu.ujn.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import cn.edu.ujn.dao.User;

public interface UserMapper {
    int deleteByPrimaryKey(Integer userId);

    int insert(User row);

    int insertSelective(User row);

    User selectByPrimaryKey(Integer userId);

    int updateByPrimaryKeySelective(User row);

    int updateByPrimaryKey(User row);
    
    User selectByCode(String code);
    
  //根据用户名、密码查询用户
    //@Param指定参数名称，用在xml文件中
     User findUser(@Param("userCode")String userCode,@Param("password")String password);
     
     
     //注册新用户
     int createUser(User user);
     int createUser2(User user);
     
   //查找所有用户信息 
     List<User> findAllUser();
     
     List<User> findUserByType(@Param("userCode")String userCode, @Param("userName")String userName,@Param("userAuthority")String userAuthority,@Param("gender")String gender,@Param("userState")String userState);
     
}




